package com.starter.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties(PrefixProperties.class)
@ConditionalOnProperty(
        prefix = "myself",
        name = "isopen",
        havingValue = "true"
)
public class MyselfConfig {

    @Autowired
    PrefixProperties prefixProperties;

}
